import request from '@/utils/request'
// 标签列表
export const getTagsListApi =params => {
    return request({
      url:'/tags',
      params
    })
  }
// 添加
export const addTagsApi = (data) => {
    return request({
        url: '/tags',
        method: 'post',
        data
      })
    }
// 标签详情
export const TagsListApi = (id) => {
  return request({
      url: '/tags/'+id,
    })
  }
//   修改
export const getTagseditApi = (data) => {
    return request({
      url: '/tags/'+data.id,
      method: 'PUT',
      data
    })
  }
//  删除
export const getTagsdelApi = (id) => {
    return request({
      url: '/tags/'+id,
      method:'delete'
    })
  }
//   添加
export const getTagsaddApi = () => {
    return request({
      url: '/subjects',
      method: 'post',
    })
  }

//   学科简单列表
export const getTagsimpleApi = (params) => {
    return request({
      url: '/subjects/simple',
      method: 'get',
      params,
    })
  }
//   学科详情
export const getsubjectsApi = (id) => {
    return request({
      url: '/subjects'+id,
      method: 'get',
    })
  }
//标签状态
export const tagsInfoApi =(id,state) => {
  return request({
    url: `/tags/${id}/${state}`,
    method: 'POST',
  })
}



